package top.coolxue.common.result;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class JsonListResult<T> extends JsonResult implements Serializable {
    private static final long serialVersionUID = 1L;

    private List<T> items;


    public JsonListResult(boolean status, String message, List<T> items) {
        super(status, message);
        this.items = items;
    }

    public JsonListResult(List<T> items) {
        this(true, "", items);
    }

    public JsonListResult(String message, List<T> items) {
        this(true, message, items);
    }

    public JsonListResult(boolean status, String message) {
        this(status, message, new ArrayList(0));
    }

    public List<T> getItems() {
        return items;
    }
}
